Optimal. Leaf size=39 \[ -\frac{2 \tanh ^{-1}\left (\frac{b+2 c x^n}{\sqrt{b^2-4 a c}}\right )}{n \sqrt{b^2-4 a c}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0329309, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136, Rules used = {1352, 618, 206} \[ -\frac{2 \tanh ^{-1}\left (\frac{b+2 c x^n}{\sqrt{b^2-4 a c}}\right )}{n \sqrt{b^2-4 a c}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1352
Rule 618
Rule 206
Rubi steps
\begin{align*} \int \frac{x^{-1+n}}{a+b x^n+c x^{2 n}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{a+b x+c x^2} \, dx,x,x^n\right )}{n}\\ &=-\frac{2 \operatorname{Subst}\left (\int \frac{1}{b^2-4 a c-x^2} \, dx,x,b+2 c x^n\right )}{n}\\ &=-\frac{2 \tanh ^{-1}\left (\frac{b+2 c x^n}{\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c} n}\\ \end{align*}
Mathematica [A] time = 0.0620931, size = 39, normalized size = 1. \[ -\frac{2 \tanh ^{-1}\left (\frac{b+2 c x^n}{\sqrt{b^2-4 a c}}\right )}{n \sqrt{b^2-4 a c}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.046, size = 113, normalized size = 2.9 \begin{align*} -{\frac{1}{n}\ln \left ({x}^{n}+{\frac{1}{2\,c} \left ({b}^{2}-4\,ac+b\sqrt{-4\,ac+{b}^{2}} \right ){\frac{1}{\sqrt{-4\,ac+{b}^{2}}}}} \right ){\frac{1}{\sqrt{-4\,ac+{b}^{2}}}}}+{\frac{1}{n}\ln \left ({x}^{n}+{\frac{1}{2\,c} \left ( b\sqrt{-4\,ac+{b}^{2}}+4\,ac-{b}^{2} \right ){\frac{1}{\sqrt{-4\,ac+{b}^{2}}}}} \right ){\frac{1}{\sqrt{-4\,ac+{b}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{n - 1}}{c x^{2 \, n} + b x^{n} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.57392, size = 351, normalized size = 9. \begin{align*} \left [\frac{\log \left (\frac{2 \, c^{2} x^{2 \, n} + b^{2} - 2 \, a c + 2 \,{\left (b c - \sqrt{b^{2} - 4 \, a c} c\right )} x^{n} - \sqrt{b^{2} - 4 \, a c} b}{c x^{2 \, n} + b x^{n} + a}\right )}{\sqrt{b^{2} - 4 \, a c} n}, -\frac{2 \, \sqrt{-b^{2} + 4 \, a c} \arctan \left (-\frac{2 \, \sqrt{-b^{2} + 4 \, a c} c x^{n} + \sqrt{-b^{2} + 4 \, a c} b}{b^{2} - 4 \, a c}\right )}{{\left (b^{2} - 4 \, a c\right )} n}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09947, size = 53, normalized size = 1.36 \begin{align*} \frac{2 \, \arctan \left (\frac{2 \, c x^{n} + b}{\sqrt{-b^{2} + 4 \, a c}}\right )}{\sqrt{-b^{2} + 4 \, a c} n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]